package com.engine4cloud.tdf.education.dto.update;

import com.engine4cloud.tdf.education.dto.EduResourceFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 学习资源表
 *
 * @author wenjie
 * @date 2024-07-30 14:58:22
 */
@Data
@Schema(description = "学习资源表")
public class EduResourceUpdateDTO implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;
    /**
     * 资源名称
     */
    @Schema(description = "资源名称", example = "知法懂法.mp4")
    @NotBlank(message = "资源名称不能为空")
    private String name;

    /**
     * 资源格式
     */
    @Schema(description = "资源格式", example = "视频")
    private String format;

    /**
     * 所属栏目
     */
    @Schema(description = "所属栏目", example = "01")
    @NotBlank(message = "所属栏目不能为空")
    private String specialColumn;

    /**
     * 资源描述
     */
    @Schema(description = "资源描述", example = "法律知识普及")
    private String describe;

    /**
     * 封面地址
     */
    @Schema(description = "封面地址", example = "43455343.png")
    private String coverUrl;

    /**
     * 附件地址
     */
    @Schema(description = "附件地址")
    @NotEmpty(message = "附件不能为空")
    private List<EduResourceFileDTO> fileList;

}